約 6,847,374 件
https://w.atwiki.jp/mw_wiki/pages/18.html
公式サイト 概要 MEMO 静的サイト構築 バケットの作成 (mw-holly002) 静的ウェブサイトホスティング設定 https //docs.aws.amazon.com/ja_jp/AmazonS3/latest/dev/HowDoIWebsiteConfiguration.html エンドポイント名:http //mw-holly002.s3-website-ap-northeast-1.amazonaws.com 「The IndexDocument Suffix is not well formed」というメッセージが表示されるが・・・ index.htmlとerror.htmlファイルをアップロード後、再度ここの設定でインデックスドキュメント名を index.htmlとerror.htmlに指定しなおしたら、普通に保存できた。 ここでエラーが出ている限り、ホスティング設定はできないため、エンドポイントをブラウザで指定してもエラーとなる。 謎の動き。。。 バケットポリシーの変更(コンテンツをインターネットに公開するため) { "Version" "2012-10-17", "Statement" [{ "Sid" "PublicReadForGetBucketObjects", "Effect" "Allow", "Principal" "*", "Action" ["s3 GetObject"], "Resource" ["arn aws s3 mw-holly002/*"] } ]} Version の日付が何をさしているのか不明・・・ コンテンツをアップロード(index.html, error.html) https //s3-ap-northeast-1.amazonaws.com/mw-holly002/index.html https //s3-ap-northeast-1.amazonaws.com/mw-holly002/aaa.html css, js, images などをアップロード エンドポイント名でアクセスしたら、無事表示された。 参考サイト S3で静的ウェブサイトをホスティングしてみる http //www.simpline.co.jp/tech/?p=1150 無料HTMLテンプレートhttp //template-party.com/temp_responsive_kojin.html http //www.coolwebwindow.com/
https://w.atwiki.jp/nextyukke/pages/116.html
Contents Contents Document Download Setting Setting PATH Using サポート地域の取得 登録されているAMIを取得 登録されているGroupを取得 登録されているKey pairを取得 インスタンスを作成 インスタンスを確認 インスタンスを削除 Document http //docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/ Download http //developer.amazonwebservices.com/connect/entry.jspa?externalID=351 categoryID=88 Setting Setting PATH export JAVA_HOME= java path /Home export EC2_HOME= your ec2-api-tools (root directory) export EC2_REGION=ap-southeast-1 export EC2_PRIVATE_KEY= your path /pk-xxxxxxxxxxxxxxxx.pem export EC2_CERT= your path /cert-xxxxxxxxxxxxxxxx.pem export PATH=$PATH $EC2_HOME/bin // Check $ ec2ver Using サポート地域の取得 $ ec2-describe-regions // Output (101003) REGION identifier Region name Service endpoint to which you make requests // Example (101003) REGIONeu-west-1ec2.eu-west-1.amazonaws.com REGIONus-east-1ec2.us-east-1.amazonaws.com REGIONus-west-1ec2.us-west-1.amazonaws.com REGIONap-southeast-1ec2.ap-southeast-1.amazonaws.com 登録されているAMIを取得 $ ec2-describe-images [地域を指定 --region region type e.g. ap-southeast-1 ] // Output IMAGE identifier (IMAGE) ImageID (ami-xxxxxxxx) Manifest location (98xxxxxxxxxx/ bucket name ) ID of the AWS account that registered the image (98xxxxxxxxxx or "amazon") Image status (available, pending, failed) Image visibility (public or private) Image architecture (i386 or x86_64) Image type (machine, kernel, or ramdisk) Type of root device (ebs or instance-store) Virtualization type (paravirtual or hvm) 登録されているGroupを取得 $ ec2-describe-group [地域を指定 --region region type e.g. ap-southeast-1 ] // Output Output type identifier ("GROUP", "PERMISSION") AWS account ID of security group owner Security group name Description if identifier is "GROUP" Firewall rule if identifier is "PERMISSION" // Example GROUP98xxxxxxxxxxdefaultdefault group PERMISSION98xxxxxxxxxxdefaultALLOWStcp8080FROMCIDR0.0.0.0/0 登録されているKey pairを取得 $ ec2-describe-keypairs [地域を指定 --region region type e.g. ap-southeast-1 ] // Output KEYPAIR identifier Key pair name Private key fingerprint // Example KEYPAIR key pair 81 8f xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx;xx インスタンスを作成 $ ec2-run-instances ImageID e.g. ami-xxxxxxxx -g group name -t Instance type e.g. m1.small -k Key pair [ 地域を指定 --region region type ] // Example RESERVATION r-a21827f0 98xxxxxxxxxx default INSTANCE i-xxxxxxxx ami-xxxxxxxx pending 0 m1.small 2010-10-02T23 56 37+0000 ap-southeast-1b monitoring-disabled instance-store インスタンスを確認 $ ec2-describe-instances [インスタンスを指定 i-xxxxxxxx] [地域を指定 --region region type e.g. ap-southeast-1 ] // Example RESERVATION r-c7055795 986661948336 default INSTANCE i-xxxxxxxx ami-xxxxxxxx ec2-175-41-xxx-x.ap-southeast-1.compute.amazonaws.com ip-10-128-xx-xxx.ap-southeast-1.compute.internal running key pair 0 m1.small 2010-07-07T17 04 07+0000 ap-southeast-1b monitoring-disabled 175.41.xxx.x 10.128.xx.xxx instance-store paravirtual インスタンスを削除 $ ec2-terminate-instances InstanceID e.g. i-xxxxxxxx [地域を指定 --region region type e.g. ap-southeast-1 ] // Output INSTANCE identifier The instance ID of the instance being terminated The state of the instance prior to being terminated The new state of the instance // Example INSTANCE i-xxxxxxxx running shutting-down よくわかるAmazonEC2/S3入門 ―AmazonWebServicesクラウド活用と実践 (Software Design plusシリーズ) AmazonCloudテクニカルガイド ―EC2/S3からVPCまで徹底解析― クラウドAMAZON EC2/S3のすべて (ITpro BOOKs)
https://w.atwiki.jp/granblue/pages/27.html
データのバックアップを同じサーバー内に置いていると保全性が半減するので どこか他に置きたいが適当なサーバーがない場合、Amazon S3がよいらしい。 ファイルのアップロード自体にはお金がかからない(厳密にはPUTコマンドにはお金がかかるが)ので、 日々のバックアップをアップロードするだけだと、ファイルサイズに応じた従量課金しかかからないので大変お得。 ブラウザからGUIで操作するのは、簡単にできそうだが バックアップはcronで実行するからコマンドラインで利用できないといけないので、 これらを利用するツールがいろいろ用意されているが、PHP版は5.3以降でないと動かなかったり、 とあるPerlスクリプトは依存関係が多くてインストールが大変だったりする。 Python版は比較的素直に動いたが、この言語知らないのでできればPerlにしたかったので見つけたのがこれ。 ■Simple Command-Line Access to Amazon EC2 and Amazon S3 http //aws.amazon.com/code/Amazon-S3/739 http //d.hatena.ne.jp/faibou/20100603/1275533631 バッチ実行ユーザーのログインルートに .awssecret という名前のドットファイルを作成し その中の1行目にアクセスキー、2行目にシークレットアクセスキーを記入 パラメータ名は不要で、キーのみを記述 で、上のサイトからPerlスクリプトをダウンロードして実行するだけだった コマンド例 /usr/bin/perl aws.pl put (バケット名)/db_backup.tar.gz db_backup.tar.gz x-amz-storage-class REDUCED_REDUNDANCY --curl-options="--limit-rate 768k" x-amz-storage-class REDUCED_REDUNDANCY 低冗長化ストレージ(安いやつ)にするオプション、この情報を見つけるのに超苦労した --curl-options="--limit-rate 768k" 転送速度制限、帯域をめいいっぱい使うとバックアップ中にサーバーにアクセスしにくくなるので
https://w.atwiki.jp/memcache/pages/62.html
Amazon EC2 Command-Line Tools鍵・証明書の取得方法 Regionの変更 link Amazon EC2 Command-Line Tools 使えるようになるまでいろいろやることがある。 鍵・証明書の取得 Regionの変更 鍵・証明書の取得方法 以下を参照のこと。 http //builder.japan.zdnet.com/blog/10502383/2008/08/08/entry_27012840/ Regionの変更 日本なら以下をRegionとして環境変数EC2_URLに指定する。 ec2.ap-northeast-1.amazonaws.com 利用可能なRegionは以下のコマンドで調べられる。 ec2-describe-regions REGION eu-west-1 ec2.eu-west-1.amazonaws.com REGION sa-east-1 ec2.sa-east-1.amazonaws.com REGION us-east-1 ec2.us-east-1.amazonaws.com REGION ap-northeast-1 ec2.ap-northeast-1.amazonaws.com REGION us-west-2 ec2.us-west-2.amazonaws.com REGION us-west-1 ec2.us-west-1.amazonaws.com REGION ap-southeast-1 ec2.ap-southeast-1.amazonaws.com cf http //www.cyberarchitect.net/blog/archives/221 link Amazon EC2 API Tools
https://w.atwiki.jp/exvs2xb/pages/744.html
メリーナとカノのスタンプ追加しようと思ったら画像の編集方法がわからなかった。今はURL貼りじゃないのね… -- (名無しさん) 2022-06-01 20 45 22 コメント欄にURL張りでもいいよ -- (名無しさん) 2022-06-01 20 54 41 https //exvs2xb-prd-resource.s3-ap-northeast-1.amazonaws.com/images/9c9116778987363c79af13ed6824d8241a2d3c7dbe3f97ea5fb7f67835341a506c15df1ea3b61a5705ee4b0062286a6add97cbbd74f465ce6dffdd91822b96be.png?1652932136 -- (メリーナ) 2022-06-06 20 17 25 https //exvs2xb-prd-resource.s3-ap-northeast-1.amazonaws.com/images/f9b97a45090e19b166c5047f89990860e5ba58d6f66537ddb0ebaf0a6908e5318c53b3386ec31c2709e43c021203dc3b01ef309832adf32edb8ef494b39f09b4.png?1652932136 -- (カノ) 2022-06-06 20 18 08 https //exvs2xb-prd-resource.s3-ap-northeast-1.amazonaws.com/images/9d2ca64036c896541b95eaddf1fcb79ee445471317feee06c75cdc5080d36a2974dae0e20aeeae2a26d4ba6af61d89ac4c0be86c7d0ab4ed6c5af006123e3aad.png?1652932136 -- (Project N-EXTREMEスペシャルスタンプ1) 2022-06-06 20 30 07 https //exvs2xb-prd-resource.s3-ap-northeast-1.amazonaws.com/images/3fc6ec073ffab1558891f22cd6be83cc0b2b64f10e939fde72240a9bd0f70345670eaf35ee24802508ed51d432e00d98c0dfe1c106d05bf3c9c9455643d041ec.png?1652932136 -- (Project N-EXTREMEスペシャルスタンプ2) 2022-06-06 20 30 58 じゃあ頼む! -- (名無しさん) 2022-06-06 20 31 39
https://w.atwiki.jp/keisks/pages/377.html
ダウンロード https //requester.mturk.com/developer/tools/clt 中に様々なシェルスクリプトとget stated htmlが入っている。 初期設定 AWSからアクセスキーとシークレットキーを取得 [Command Line Tools Installation Directory]/bin/mturk.properties を設定(httpsに注意) MTURK_CMD_HOMEを絶対パスで指定 binディレクトリから実行。(sampleディレクトリに色々サンプルがある) 例えば大量のWorkerに対して自動でqualificationをassignするときなど便利。 http //mturk.s3.amazonaws.com/CLT_Tutorial/UserGuide.html#assignqual Create a Qualification Type http //docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkCLT/CLTReference_CreateQualificationTypeCommand.html Assigning Qualification http //docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkCLT/CLTReference_AssignQualificationCommand.html Properties File Format http //docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkCLT/CLTFilesArticle.html e.g. for qualifying new turkers ./assignQualification.sh -qualtypeid XXXXXXXXX -scorefile ../sample.score.tsv (tsv needs two columns workerid and score) for updating (existing qualified) turkers ./updateQualificationScore.sh -qualtypeid YYYYYYYY -input ../sample.score.tsv (note using -input.) python cli https //blog.mturk.com/tutorial-a-beginners-guide-to-crowdsourcing-ml-training-data-with-python-and-mturk-d8df4bdf2977 画像埋め込み tinypicsを使う or base64埋め込みも可能? toggle button formではなく、 a href="javascript toggle();" id="displaytext" style="font-size 90%;" ( b hide / show examples /b ) /a のようにする。(submit buttonが使えない可能性がある。)
https://w.atwiki.jp/kplus/pages/58.html
HTML色名 2ページ目 色名 コード 16進 RGB white #FFFFFF FF FF FF 255 255 255 ivory #FFFFF0 FF FF F0 255 255 240 lightyellow #FFFFE0 FF FF E0 255 255 224 yellow #FFFF00 FF FF 00 255 255 0 snow #FFFAFA FF FA FA 255 250 250 floralwhite #FFFAF0 FF FA F0 255 250 240 lemonchiffon #FFFACD FF FA CD 255 250 205 cornsilk #FFF8DC FF F8 DC 255 248 220 seashell #FFF5EE FF F5 EE 255 245 238 lavenderblush #FFF0F5 FF F0 F5 255 240 245 papayawhip #FFEFD5 FF EF D5 255 239 213 blanchedalmond #FFEBCD FF EB CD 255 235 205 mistyrose #FFE4E1 FF E4 E1 225 228 225 bisque #FFE4C4 FF E4 C4 255 228 196 moccasin #FFE4B5 FF E4 B5 255 228 181 navajowhite #FFDEAD FF DE AD 255 222 173 peachpuff #FFDAB9 FF DA B9 255 218 185 gold #FFD700 FF D7 00 255 215 0 pink #FFC0CB FF C0 CB 255 192 203 lightpink #FFB6C1 FF B6 C1 255 182 193 orange #FFA500 FF A5 00 255 165 0 lightsalmon #FFA07A FF A0 7A 255 160 122 darkorange #FF8C00 FF 8C 00 255 140 0 coral #FF7F50 FF 7F 50 255 127 80 hotpink #FF69B4 FF 69 B4 255 105 180 tomato #FF6347 FF 63 47 255 99 71 orangered #FF4500 FF 45 00 255 69 0 deeppink #FF1493 FF 14 93 255 20 147 magenta #FF00FF FF 00 FF 255 0 255 fuchsia #FF00FF FF 00 FF 255 0 255 red #FF0000 FF 00 00 255 0 0 oldlace #FDF5E6 FD F5 E6 253 245 230 lightgoldenrodyellow #FAFAD2 FA FA D2 250 250 210 linen #FAF0E6 FA F0 E6 250 240 230 antiquewhite #FAEBD7 FA EB D7 250 235 215 salmon #FA8072 FA 80 72 250 128 114 ghostwhite #F8F8FF F8 F8 FF 248 248 255 mintcream #F5FFFA F5 FF FA 245 255 250 whitesmoke #F5F5F5 F5 F5 F5 245 245 245 beige #F5F5DC F5 F5 DC 245 245 220 wheat #F5DEB3 F5 DE B3 245 222 179 sandybrown #F4A460 F4 A4 60 244 164 96 azure #F0FFFF F0 FF FF 250 255 255 honeydew #F0FFF0 F0 FF F0 240 255 240 aliceblue #F0F8FF F0 F8 FF 240 248 255 khaki #F0E68C F0 E6 8C 240 230 140 lightcoral #F08080 F0 80 80 240 128 128 palegoldenrod #EEE8AA EE E8 AA 238 232 170 violet #EE82EE EE 82 EE 238 130 238 darksalmon #E9967A E9 96 7A 233 150 122 lavender #E6E6FA E6 E6 FA 230 230 250 lightcyan #E0FFFF E0 FF FF 224 255 255 burlywood #DEB887 DE B8 87 222 184 135 plum #DDA0DD DD A0 DD 221 160 221 gainsboro #DCDCDC DC DC DC 220 220 220 crimson #DC143C DC 14 3C 220 20 60 palevioletred #DB7093 DB 70 93 219 112 147 goldenrod #DAA520 DA A5 20 218 165 32 orchid #DA70D6 DA 70 D6 218 112 214 thistle #D8BFD8 D8 BF D8 216 191 216 lightgrey #D3D3D3 D3 D3 D3 211 211 211 tan #D2B48C D2 B4 8C 210 180 140 chocolate #D2691E D2 69 1E 210 105 30 peru #CD853F CD 85 3F 205 133 65 indianred #CD5C5C CD 5C 5C 205 92 92 mediumvioletred #C71585 C7 15 85 199 21 133 silver #C0C0C0 C0 C0 C0 192 192 192 darkkhaki #BDB76B BD B7 6B 189 183 107 rosybrown #BC8F8F BC 8F 8F 188 143 143 mediumorchid #BA55D3 BA 55 D3 186 85 211 darkgoldenrod #B8860B B8 86 0B 184 134 11 firebrick #B22222 B2 22 22 178 34 34 powderblue #B0E0E6 B0 E0 E6 176 224 230 lightsteelblue #B0C4DE B0 C4 DE 176 196 222 paleturquoise #AFEEEE AF EE EE 175 238 238 greenyellow #ADFF2F AD FF 2F 173 255 47 lightblue #ADD8E6 AD D8 E6 173 216 230 darkgray #A9A9A9 A9 A9 A9 169 169 169 brown #A52A2A A5 2A 2A 165 42 42 sienna #A0522D A0 52 2D 160 82 45 yellowgreen #9ACD32 9A CD 32 154 205 50 darkorchid #9932CC 99 32 CC 153 50 204 palegreen #98FB98 98 FB 98 152 251 152 darkviolet #9400D3 94 00 D3 148 0 211 mediumpurple #9370DB 93 70 DB 147 112 219 lightgreen #90EE90 90 EE 90 144 238 144 darkseagreen #8FBC8F 8F BC 8F 143 188 143 saddlebrown #8B4513 8B 45 13 139 69 19 darkmagenta #8B008B 8B 00 8B 139 0 139 darkred #8B0000 8B 00 00 139 0 0 blueviolet #8A2BE2 8A 2B E2 138 43 226 lightskyblue #87CEFA 87 CE FA 135 206 250 skyblue #87CEEB 87 CE EB 135 206 235 gray #808080 80 80 80 128 128 128 olive #808000 80 80 00 128 128 0 purple #800080 80 00 80 128 0 128 maroon #800000 80 00 00 128 0 0 aquamarine #7FFFD4 7F FF D4 127 255 212
https://w.atwiki.jp/jasagiri/pages/68.html
RFC:http //www5d.biglobe.ne.jp/~stssk/rfcjlist.html 規格対応エレメント表 http //meiert.com/en/indices/html-elements/ html5 http //www.html5.jp/ URI-Templates http //bitworking.org/projects/URI-Templates/ http //builder.japan.zdnet.com/sp/firefox-3-for-developer-2008/ StatusCode http //www.studyinghttp.net/status_code http //thoughtpad.net/alan-dean/http-headers-status.html http //d.hatena.ne.jp/IwamotoTakashi/20090429/p1 REST 何がRESTを良くするか:http //www.infoq.com/jp/news/2008/11/rest-api RESTfullなアプリケーションを記述する:http //www.infoq.com/jp/articles/subbu-allamaraju-rest REST API デザイン http //www.25hoursaday.com/weblog/2008/10/24/RESTAPIDesignInventMediaTypesNotProtocolsAndUnderstandTheImportanceOfHyperlinks.aspx OpenID:http //code.google.com/p/openidengine/ :http //www.atmarkit.co.jp/fsecurity/rensai/openid01/openid01.html :http //www.goodpic.com/mt/archives2/2008/01/openid_oauth.html :http //d.hatena.ne.jp/lyokato/20080816/1218866900 OAuth:http //www.atmarkit.co.jp/fsecurity/special/106oauth/oauth01.html
https://w.atwiki.jp/cheapugg058/pages/16.html
Pryor also ran it in for a rushing score of his own If using Facebook is a good method of getting your message out and building your subscriber list is the ideal strategy to make money, is there any way to combine the two? Is there any way to use Facebook to create a great subscriber list?The typical way that a business person gets individuals to subscribe is by putting a opt-in form on their websiteauthomichael kors online r {line-height 22px;color #666;font-family Arial, Helvetica, sans-serif;} My facts and this story implicates former Gov Tailgating can be very enjoyableMarino appeared on the 27th position in the List of 100 Greatest Football Players Everybody was completely muddy, so muddy you couldn t see who was wearing what uniformmetadata span There are painted batting helmets that have flaming skulls, baseballs with growling faces and even depictions of famous players in action painted directly on the helmettwitter-inner-ditto238301605173284864 { background #fff; padding 10px 12px 10px 30px; margin 0; min-height 48px; color #000; font-size 22px !important; font-family Georgia, "Times New Roman", Times, serif; line-height 30px; -moz-border-radius 5px;www.michaelkorsoutletzc.com -webkit-border-radius 5px; } div The software has made it possible for me to watch the National Football League matches from virtually anywhere Sirius has over 125 commercial free channels2 rushing yards per game, second only to Nevada in the NCAA Football Bowl Subdivisioncom/profile_background_images/403364355/Twitter_IndyBG This year s first pick may be one of the biggest blunders in many years2012 (Monday) (Local Time)VolleyballMichael Turner Jersey Women s preliminariesChina v Turkey (09 30)Serbia v South Korea (11 30)Dominican Republic v Russia (14 45)USA v Brazil (16 45)Italy v Japan (20 00)Great Britain v Algeria (22 00)Sports fans and supporters around the globe watch London Olympic 2012 all game Live Streaming upauthor {line-height 20px;color #333;font-family Arial, Helvetica, sans-serif;} Instead a photographer will highlight your best features t[[Rob Gronkowski Jersey http //www.patriotsnflofficialstore.com]] o create a beautiful shot04 Earnings $1Tony ShaloubThis season ticket holder has more Emmys than youNFL Divisional Playoff Predictions This week it stands to reason that the task I face is far more daunting than the last She has also had a line of shoes and jewelry Restoring and maintaining resilience is often a matter of being in close contact with your physical and emotional statusCditto184461049246912513{background #9AE4E8Rob Gronkowski Jersey Rush sold concert tickets to 37 markets in the United States and Canadatwitter-inner-ditto221997961155067904 div Phillips seemed to be the star of the show last night, with way more camera time than Sanchez, although her simple rendition of “I Will Always Love You” rocked the house down and gave her fans some hope that perhaps she would sweep the night after allGetting cheap software discounts does not mean that the product you are getting is cheap and ill-madetimestamp a Just plan to have the food cooked at least an hour and a half before the game starts2012 National Football League Pre-Season Schedule (All times Eastern)Sunday, August 5Arizona vsreply span {background-position 0px 3px;} p Tommy Thompson (in bush s cabinet in Dept Hot subs such as meatball, pulled pork and Philly cheese steak are hot on the menu of many tailgaters Managing the promotional programs for the players and teamstimestamp {font-size 12px;display block;color #999;} pretweet span {background-position -80px 3px;} p He was in the mood to celebrate In the words of Jack Welch, former CEO of GE, "When you take on a leadership role, it s no longer about you, it s about themretweet span {background-position -80px 3px;} p Other than that, Morita was mostly a bit player, but one you would recognize on TV shows from Happy Days to Baywatch An attempt to collect and list down some of the interesting names is done in the following write updittoTweet span There are many different sites on the world wide web that need you to use interesting or cool screen names El Laberinto de la Soledad , a study of the Mexican identity and thought and his poetic works like Libertad de Pisis and Piedra de sol are some of his most famous contributions to Mexican literature It is sold in many health stores; it is even sold online through Amazon Unfortunately, the source didn’t go into very many specifics, though he did hint at something particularly good coming for those who will run iOS 6 on theMatt Ryan Jersey new iPad After that, they try to find such a source that would be reliable both in terms of originality of product as well as consistent fine-quality But I was only spending about $100 and I was sure whatever I got for that price was going to be better than the old beat up house cues that I had been using But then Sellers sprained an ankle and could not work in the cramped cockpit set3 billion at market exchange rates Yes, you read right you can go through the hiring process, both in the game and online, making it interesting and somewhat unnecessary for any but the most hardcore gamers NCAA Football 11 -Wikipedia The race, currently sponsored by Commerzbank, is Germany s oldest city marathon
https://w.atwiki.jp/naobe/pages/78.html
ネットワークに戻る RFC2616概要 HTTP/1.1 RFC6265概要 HTTP状態管理機構 パーセントエンコーディング(URLエンコード) URLで意味を持つコードと混同する日本語などのバイナリや特殊記号を16進形式にして、先頭に%を付加した文字に変換する。正確に言うと、非予約文字、予約文字以外を変換する。 項目 説明 非予約文字 ASCIIのコード範囲内の英字(大文字・小文字)、数字、ハイフン “-”、ピリオド “.”、アンダースコア “_”、チルダ “~” 予約文字 URIを表す符号。ASCIIのコード範囲内のコロン “ ”、スラッシュ “/”、疑問符 “?”、シャープ “#”、角括弧 “[”、“]”、単価記号 “@”、感嘆符 “!”、ドル記号・ペソ記号 “$”、アンパサンド “ ”、アポストロフィー・シングルクオート “ ”、丸括弧 “(”、“)”、アスタリスク “*”、正符号・加算記号 “+”、コンマ “,”、セミコロン “;”、等号 “=” name=%E8%8F%85%E7%9B%B4%E4%BA%BA UTF-8で、%E8%8F%85:菅, %E7%9B%B4 直, %E4%BA%BA 人 x-www-form-urlencoded(URLエンコード) POSTのフォームデータをエンコードする。%を付加する方式は、パーセントエンコーディングと同じ。パーセントエンコーディングの予約文字も変換している スペースは"+"に変換。Javaのソースを見ると、英数字、"-","_", ".","*"以外を変換する BASE64 Wikipediaより データを64種類の印字可能な英数字のみを用いて、それ以外の文字を扱うことの出来ない通信環境にてマルチバイト文字やバイナリデータを扱うためのエンコード方式 7ビットのデータしか扱うことの出来ない電子メールにて広く利用されている A–Z, a–z, 0–9 までの62文字と、記号2つ (+ , /) 、さらにパディング(余った部分を詰める)のための記号として = が用いられる 76文字ごとに改行コードが入る Cookie Wikipediaより クッキーを設定する際、どの要求に対してクッキー情報を送り返すのか、URLの範囲を指定する。 規定値は、クッキーを設定したサーバに対するすべての要求であり、対象を広げることも狭めることもできる。ただし広げる場合でも、トップレベルドメインより狭い範囲でなければならない。 またクッキーの有効期限は、通常はブラウザを終了するまでだが、指定した期限まではブラウザを再度起動しても保持されるように設定することができる。有効期限の情報も、サーバからブラウザにクッキー情報を送信する段階で付加される。 無期限という設定は出来ない。 詳細: http //www.studyinghttp.net/cookies リクエスト 全てテキスト。行(CRLF)で区切られる。 フォーマット リクエストラインは1行。ヘッダは複数行。 大項目 小項目 説明 リクエストライン メソッド GET,POST,PUTなどのどれか。 リクエストURL リクエストを処理するURI プロトコルバージョン HTTPのバージョン。【例】HTTP/1.1 ヘッダ HOST リクエスト先のホスト名。必須項目 空行 POSTのときにヘッダの終了を示すために挿入される メッセージボディ POSTのときにリクエストデータを出力する 【例】 GET http //example.jp/31/31-001.php HTTP/1.1 リクエストライン Host example.jp --+ User-Agent Mozilla/5.0 (Windows NT 5.1; rv 2.0.1) Gecko/20100101 Firefox/4.0.1 | Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 +-- ヘッダ Accept-Language ja,en-us;q=0.7,en;q=0.3 | Accept-Encoding gzip, deflate | Accept-Charset Shift_JIS,utf-8;q=0.7,*;q=0.7 | Keep-Alive 115 | Connection keep-alive | Referer http //example.jp/31/ --+ Accept-CharsetでShift-JISの品質係数が1であるため、サーバは、Shift-JISでエンコードしたメッセージを返す。 POST http //example.jp/31/31-003.php HTTP/1.1 リクエストライン Accept image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel ヘッダ Referer http //example.jp/31/31-002.php Accept-Language ja User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Inf oPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Content-Type application/x-www-form-urlencoded Accept-Encoding gzip, deflate Host example.jp Content-Length 65 Connection Keep-Alive Pragma no-cache name=%E8%8F%85%E7%9B%B4%E4%BA%BA mail=kan@aaa.jp gender=%E7%94%B7 メッセージボディ Hostヘッダ HTTP1.1では必須。POST/GETでのURIにHOSTを指定していなかった場合、Virtualホストを特定できない。そのためHostヘッダにHOST名を指定する。URIにホスト名があって、Hostヘッダにもホスト名がある場合はURIを優先する。URIにホスト名を指定することを強制すれば良いような気がするが。 Referer ヘッダの一種。リンク元のURLを示す。あるWebページのリンクをクリックして別のページに移動したときの、リンク元のページのこと。 改変、削除される場合があるので正しくリンクを示しているとは限らない。 セキュリティ上、問題となるのは、URLが秘密情報を含んでいる場合。たとえば、URLがセッションIDを含んでいる場合。なりすましに使われる可能性がある。 【例】 GET http //example.jp/31/31-002.php HTTP/1.1 Accept image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, appl ication/msword, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms -xpsdocument, application/xaml+xml, */* Referer http //example.jp/31/ Accept-Language ja User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Inf oPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Accept-Encoding gzip, deflate Host example.jp Connection Keep-Alive http //example.jp/31/のHTMLのaタグからリクエストが発生したため、Refererヘッダがつく。 レスポンス 全てテキスト。行で区切られる。 フォーマット ステータスラインは1行。ヘッダ、ボディは複数行。 大項目 小項目 説明 ステータスライン プロトコルバージョン ステータスコード 1XX 処理継続、2XX 正常終了、3XX リダイレクト、4XX クライアントエラー、5XX サーバエラー テキストフレーズ レスポンスヘッダ Content-Length ボディのバイト数 Content-Type MIMEタイプ; charset=エンコーディング 空行 ヘッダの終わりを示す ボディ 【例】 HTTP/1.1 200 OK Date Wed, 04 May 2011 04 51 51 GMT Server Apache/2.2.14 (Ubuntu) X-Powered-By PHP/5.3.2-1ubuntu4.2 Vary Accept-Encoding Content-Length 20 Keep-Alive timeout=15, max=100 Connection Keep-Alive Content-Type text/html; charset=UTF-8 body 13 51 /body Content-type メディアタイプを示すエンティティヘッダ(メッセージボディに対する付随情報)。type "/" subtype *( ";" parameter )であらわされる。text/html; charset=utf-8など。charsetを追加すると出力の文字コードを示す。HTML文書にapplication/octet-streamを付けると、 多くの場合、Webブラウザはそれをダウンロードするか否か問い合わせるようになる。 Apacheの場合は、httpd.confの以下の設定でcharsetを指定する。 AddDefaultCharset UTF-8 Tomcatでは、JSPのpageディレクティブで設定する。 %@ page language="java" contentType="text/html; charset=Windows-31J" pageEncoding="Windows-31J" % http //www.atmarkit.co.jp/fjava/rensai3/mojibake01/mojibake01.html 参照